<?php
/**
 * Created by PhpStorm.
 * User: xufei
 * Date: 2018/5/15
 * Time: 下午4:58
 */


$db['goods_tags']=array (
    'columns' =>
        array (
            'id' =>
                array (
                    'type' => 'number',
                    'required' => true,
                    'pkey' => true,
                    'extra' => 'auto_increment',
                    'label' => app::get('b2c')->_('id'),
                    'width' => 110,
                    'editable' => false,
                    'in_list' => true,
                    'default_in_list' => true,
                ),
            'tags_id' =>
                array (
                    'type' => 'number',
                    'label' => app::get('b2c')->_('标签ID'),
                    'width' => 110,
                    'editable' => false,
                    'in_list' => true,
                    'parent_id'=>true,
                ),
            'goods_id' =>
                array (
                    'type' => 'number',
                    'label' => app::get('b2c')->_('商品ID'),
                    'width' => 110,
                    'editable' => false,
                    'in_list' => true,
                    'parent_id'=>true,
                ),
            'image' =>
                array (
                    'type' => 'varchar(100)',
                    'editable' => false,
                    'label' => app::get('b2c')->_('分类图片'),
                    'comment' => app::get('b2c')->_('分类图片'),
                    'is_title' => true,
                    'default' => '',
                    'width' => 110,
                    'in_list' => true,
                    'default_in_list' => true,
                ),
        ),
    'index' =>
        array (
            'ind_tags_id' =>
                array (
                    'columns' =>
                        array (
                            0 => 'tags_id',
                        ),
                ),
            'ind_goods_id' =>
                array (
                    'columns' =>
                        array (
                            0 => 'goods_id',
                        ),
                ),
        ),
    'version' => '$Rev: 41329 $',
    'comment' => app::get('b2c')->_('小程序标签关联商品表'),
);